package org.shareworth.online_life.client.mvc;

import com.extjs.gxt.ui.client.mvc.AppEvent;
import com.extjs.gxt.ui.client.mvc.Controller;

public class AppController extends Controller {

	private AppView appView;

	public AppController() {
		registerEventTypes(AppEvents.INIT);
		registerEventTypes(AppEvents.LOGIN);

	}

	@Override
	protected void initialize() {
		appView = new AppView(this);
	}

	@Override
	public void handleEvent(AppEvent event) {
		forwardToView(appView, event);
	}

}
